package com.yulinlin.admin.modules.im.domain;

import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.admin.modules.im.domain.enums.ImMessageEnums;
import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("会话信息")
@JoinTable("im_message")
public class ImMessageEntity extends SuperEntity<ImMessageEntity>  {


        @NotEmpty(message = "必填")
        @ApiModelProperty("用户id")
        @JoinWhere
        @JoinField
        private String fromUser;





        @NotEmpty(message = "必填")
        @ApiModelProperty("房间id")
        @JoinWhere
        @JoinField
        private String imSessionId;





        @NotEmpty(message = "必填")
        @ApiModelProperty("内容")
        @JoinWhere
        @JoinField
        private String content;





        @NotEmpty(message = "必填")
        @ApiModelProperty("字符串 图片 视频 其他文件")
        @JoinWhere
        @JoinField
        private ImMessageEnums.contentType contentType;





        @NotEmpty(message = "必填")
        @ApiModelProperty("状态 正常 撤回")
        @JoinWhere
        @JoinField
        private ImMessageEnums.status status;


















}
